package com.ics.top.batch.management.domain.mapper;



import com.ics.top.batch.management.domain.BatchUserManagementDTO;
import com.ics.top.domain.SysMember;
import com.ics.top.second.domain.UserManagement;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

/**
 * Created by Administrator on 2018/3/21.
 */
@Mapper(componentModel = "spring", uses = {})
public interface BatchUserManagementMapper {
    @Mapping(target = "id",constant = "0")
    @Mapping(target = "dataSources",constant = "2")
    @Mapping(target = "name",source = "buyerNick",defaultValue = "")
    @Mapping(target = "mobile",source = "mobile",defaultValue = "")
    @Mapping(target = "closeTradeAmount",source = "closeTradeAmount",ignore = true)
    @Mapping(target = "tradeAmount",source = "tradeAmount",ignore = true)
    @Mapping(target = "avgPrice",source = "avgPrice",ignore = true)
//    @Mapping(target = "groupingIds",constant = "")

    UserManagement toUserManagement(BatchUserManagementDTO item);

}


